<template>
  <div>
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>{{level}}</el-breadcrumb-item>
      <el-breadcrumb-item v-if="$route.path=='/goodsadd'" :to="{ path: '/goods' }">{{level2}}</el-breadcrumb-item>
      <el-breadcrumb-item v-else>{{level2}}</el-breadcrumb-item>
      <slot name="goods"></slot>
    </el-breadcrumb>
    
  </div>
</template>

<script>
export default {
  props: {
    level: {
      type: String,
      default: "一级标题"
    },
    level2: {
      type: String,
      default: "二级标题"
    },
    level3: {
      type: String,
      default: "三级标题"
    }
  },
  data() {
    return {};
  },
  mounted() {},
  methods: {}
};
</script>

<style scoped >
</style>
